import React, {Component} from 'react';
import {
    AppRegistry,
    Navigator
} from 'react-native';

import WelcomePage from './javascriptPage/WelcomePage'

export default class zhixinsystem extends Component {
    render() {
        let defaultName = 'WelcomePage';
        let defaultComponent = WelcomePage;
        return (
            <Navigator
                initialRoute={{name: defaultName, component: defaultComponent}}
                configureScene={(route) => {
                    /*
                     *  node_modules/react-native/Libraries/CustomComponents/Navigator/NavigatorSceneConfigs.js
                     */
                    return Navigator.SceneConfigs.FadeAndroid;
                }}
                renderScene={(route, navigator) => {
                    let Component = route.component;
                    return <Component{...route.params} navigator={navigator}/>
                }}
            />
        );
    }
}
AppRegistry.registerComponent('ZhiXin_IOS', () => zhixinsystem);